#include <stdio.h>
int ways(int n)
{
	if (n == 1 || n == 2)
		return n;
	else return ways(n - 1) + ways(n - 2);
}
int main()
{
	int n;
	scanf_s("%d", &n);
	printf("%d", ways(n));
	return 0;
}